﻿@model eManager.Domain.Departement

@{
    ViewBag.Title = "Detail";
}

<h2>Departement Detail</h2>

<h2>@Model.Name</h2>
@Html.ActionLink("Create an employee","Create","Employee",new{departmentId =@Model.Id},null)
<table>
    <tr>
        <th>Name</th>
        <th></th>
        @foreach (var employee in Model.Employees)
        {
            <tr>
                <td>@employee.Name</td>
                <td></td>
            </tr>
        }
    </tr>
</table>
